#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
multi(int n)
{
	int i, j;
	i = 1, j = 1;
	for (i = 1; i <= n; i++)
	{
		for (j = 1; j <=i; j++)
		{
			printf("%-2dx%-2d=%-3d ", j, i, i * j);
		}
		printf("\n");
	}
}
int main()
{
	int i, j;
	i = 1, j = 1;
	int n = 0;
	scanf("%d", &n);
	multi(n);
}